import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import moment from "moment";
import {ConfigProvider} from "antd";
import zh_CN from "antd/lib/locale-provider/zh_CN";

moment.locale("zh-cn");

ReactDOM.render(
  <ConfigProvider
    locale={zh_CN}
    dropdownMatchSelectWidth={false}
    getPopupContainer={(node) => {
      // 解决下拉框随着滚动条的滚动会出现错位情况
      if (node && node.parentElement) {
        return node.parentElement;
      }
      return document.body;
    }}
  >
    <App/>
  </ConfigProvider>,
  document.getElementById('root')
);

